package com.yuxiu.edu.web.controller;

import com.yuxiu.edu.model.User;
import com.yuxiu.edu.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("salary")
public class SalaryController {

    @Autowired
    private IUserService userService;


    @RequestMapping("find")
    public String find(Integer id){
        User user = userService.findById(id);
        return null;
    }

    @RequestMapping("manage")
    public String manage(){
        return "salary/manage";
    }

    @RequestMapping("others")
    public String others(){
        return "salary/others";
    }

    @RequestMapping("info")
    public String info(){
        return "salary/info";
    }

    @RequestMapping("add")
    public String add(){
        return "salary/add";
    }

    @RequestMapping("update")
    public String edit(){
        return "salary/update";
    }

}
